<template>
  <StElDynamicForm :submit-props="{method: 'get'}"
                   :options="options"
                   :origin-prop="{inline: true,labelWidth: '100px'}" :layout="2">
  </StElDynamicForm>
</template>

<script>
export default {
  name: "StElDynamicFormUserDemo",
  data() {
    return {
      options: [
        {
          field: {
            name: 'nickname'
          },
          element: {
            label: '昵称',
            required: true,
          }
        },
        {
          field: {
            name: 'isLock'
          },
          element: {
            type: 'select',
            label: '锁定状态',
            required: true,
            options: {
              datas: 'yesNoNum'
            }
          }
        },
      ]
    }
  },
  methods: {}
}
</script>

<style scoped>

</style>